package com.naiterui.ehp.bs.emr.vo.patient;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnore;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 家族病史
 *

 * @since 2.16
 */
@ApiModel(value = "MFamilyDiseaseVO", description = "家族病史VO")
public class MFamilyDiseaseVO implements Serializable {

    private static final long serialVersionUID = -4521344581201086836L;
    /**
     * 成员关系：0：父亲；1：母亲；2：兄弟姐妹；3：子女
     */
    @ApiModelProperty(value = "成员关系：0：父亲；1：母亲；2：兄弟姐妹；3：子女")
    private Integer member;

    @ApiModelProperty(value = "疾病")
    private MSelectOrOthersVO disease;

    public Integer getMember() {
        return this.member;
    }

    public void setMember(Integer member) {
        this.member = member;
    }

    public MSelectOrOthersVO getDisease() {
        return this.disease;
    }

    public void setDisease(MSelectOrOthersVO disease) {
        this.disease = disease;
    }

    @JsonIgnore
    public boolean isNotEmpty() {
        return this.disease != null && !this.disease.isEmpty();
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }
}
